<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="style/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function submitquarymigrate() {
		document.getElementById("selectquery").submit();
	}
	function showornot(){
		//document.getElementById("1").style.visibility = "hidden";
		var tr=document.getElementById("1")
		tr.parentNode.removeChild(tr);
	}
</script>
</head>
<body class="a_height">
	<form action="queryAction?oid=${oid }&pg=1" method="post"
		id="selectquery">
		<div >
			<div class="nav">
				<i class="total_bg"></i>当前位置：<span><a href="#">综合查询</a></span><span><a
					href="javascript:void(0)">&gt;</a></span><span><a href="#">查询数据对象</a></span>
			</div>
			<input type="hidden" value="${selectlistlengh }" name="selectcount">
			<c:forEach items="${selectlist }" var="s" step="1" varStatus="v">
				${s.name } :<input type="checkbox" >
			</c:forEach>
<input type="button" onclick="showornot();" value="确定">
			<table class="quarytable" align="left">
					<c:forEach items="${selectlist }" var="s" step="1" varStatus="v">
				<tr id="1">
						<td  align="left">${s.name }:<c:if test="${s.model==1 }">
								<input type="hidden" value="${s.name }"
									name="select${v.index+1 }">
								<input type="hidden" value="${s.type }"
									name="select${v.index+1 }">
								<input type="hidden" value="${s.model }"
									name="select${v.index+1 }">
								<input type="text" value="" name="select${v.index+1 }">
							</c:if> <c:if test="${s.model==2 }">
								<input type="hidden" value="${s.name }"
									name="select${v.index+1 }">
								<input type="hidden" value="${s.type }"
									name="select${v.index+1 }">
								<input type="hidden" value="${s.model }"
									name="select${v.index+1 }">
							大于：<input style="max-width: 80px" type="text" value=""
									name="select${v.index+1 }">
							小于：<input style="max-width: 80px" type="text" value=""
									name="select${v.index+1 }">
							</c:if>
						</td>

				</tr>
					</c:forEach>
			</table>
			<div class="add_task">
				<span
					style="position: absolute; right: -15px; top: 10px; background-color: #f237ff"
					class="total_bg do_submit " onclick="submitquarymigrate();">查询</span>
			</div>
			</div>
	</form>
	<br>
	<br>
	<br>

	<div class="content2">
		<table class="content_table">
			<tr>

				<c:forEach items="${name }" var="n" step="1" varStatus="v">
					<td bgcolor="red">${n }</td>
				</c:forEach>
			</tr>
			<c:forEach items="${list }" var="s" step="1" varStatus="v">
				<c:if test="${(v.index+1)%2==1}">
					<tr class="bg2" style="cursor: hand">
						<c:forEach items="${s.queryList }" var="ss" step="1" varStatus="v">
							<td align="center">${ss}</td>
						</c:forEach>
					</tr>
				</c:if>
				<c:if test="${(v.index+1)%2==0}">
					<tr class="bg2" style="cursor: hand">
						<c:forEach items="${s.queryList }" var="ss" step="1" varStatus="v">
							<td align="center" bgcolor="#f1f7ff">${ss}</td>
						</c:forEach>
					</tr>
				</c:if>
			</c:forEach>
		</table>
	</div>
	<div class="pagebar">
		<ul>
			<li class="pre"><a href="queryAction?oid=${oid }&pg=${pg-1 }"><i
					class="total_bg"></i>上一页</a></li>
			<li><a href="#">${pg }</a></li>
			<li class="next"><a href="queryAction?oid=${oid }&pg=${pg+1 }">下一页<i
					class="total_bg"></i></a></li>
			<li>共页</li>
			<li class="end"><a href="">末页<i class="total_bg"></i></a></li>
			<li class="num_jump"><i class="total_bg"></i>

				<form action="auditAction!getMigrateAud" id="gopi">
					<input type="text" class="num" name="pi" /> <span class="numjump"
						onclick="gopi();"></span>
				</form></li>
		</ul>
	</div>

	<!--pop-->

</body>
</html>